package com.chenshi.rabbitmq.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 *
 * @author chenyq
 * @date 2023/12/11
 */

public class springQueueListener implements MessageListener {

    /*
    * 一个简单模式的 监听队列，在里面写业务逻辑
    * */
    @Override
    public void onMessage(Message message) {
        System.out.println(new String(message.getBody()));
    }



}
